<%@ page language="java" contentType="text/html; charset=windows-1255" pageEncoding="windows-1255"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" title="index_css" 
         
        href="/${project.build.finalName}/css/menu.css" />
    <script type="text/javascript" src="includes/system.js"></script>


</head>
<body>
    <table id="container">
        <tr>
        <%
        if (null == cs236369.hw5.util.HTMLFilter.filter(request.getRemoteUser()))
        {
        %>
            <td> 
                <a href='index.jsp?page=login'> 
                    <img src='/${project.build.finalName}/images/index-over.png' alt='login'/>    
                </a>
            </td>
        <% 
        }
        else
        {
        %>
            <td>welcome: 
                <a href="index.jsp?page='crowd/homePage.jsp'"> 
                    <img src='/${project.build.finalName}/images/index-over.png' alt='homePage'/>    
                </a>
            </td>
            <td>
                <a href="index.jsp?page='crowd/newMessage.jsp'"> <img
                    src='/${project.build.finalName}/images/index-over.png' alt='New Message'/>
                </a>
            </td>
            <td> 
                <a href="index.jsp?page='crowd/event.jsp'"> 
                    <img src='/${project.build.finalName}/images/browse-out.png' alt='Create Event'/>
                </a>
            </td> 
            <td> 
            <a href="index.jsp?page='crowd/search.jsp'">
                    <img src='/${project.build.finalName}/images/search-out.png' alt='Search'/>
                </a> 
                
            </td>
            <td> 
                <a href="index.jsp?page='crowd/yellowPages.jsp'">
                    <img src='/${project.build.finalName}/images/room-out.png' alt='Yellow-Pages'/>
                </a> 
            </td>
            <td>
                <a href="index.jsp?page='crowd/userInfo.jsp'">
                    <img src='/${project.build.finalName}/images/search-out.png' alt='User Info'/>
                </a> 
            </td>
            <td>
                <a href="index.jsp?page='crowd/about.jsp'">                 
                    <img src='/${project.build.finalName}/images/search-out.png' alt='About'/>
                </a> 
            </td>
            <% }
            if (request.isUserInRole("admin"))
            {%>
                <td> 
                    <a href='/${project.build.finalName}/index.jsp?logout=true'> 
                        <img src='/${project.build.finalName}/images/search-out.png' alt='Admin'/>
                    </a>
                </td>
            <% } %>
            <td> 
                <a href='/${project.build.finalName}/index.jsp?logoff=true'> 
                    <img src='/${project.build.finalName}/images/search-out.png' alt='Log Off'/>
                </a>
            </td>
            
  
        </tr>
    </table>
</body>
</html>
